package ca.llsutherland.squash.racquet;

import ca.llsutherland.squash.BaseValidator;
import ca.llsutherland.squash.administrator.AdministratorsValidator;
import ca.llsutherland.squash.domain.Racquet;

public class RacquetsValidator extends BaseValidator {

    public static void validate(Racquet expected, Racquet actual) {
        assertValidDomainObject("actual racquet", actual);
        AdministratorsValidator.validate(expected.getCreatedBy(), actual.getCreatedBy());
        assertEquals("created by should be equal", expected.getCreatedBy(), actual.getCreatedBy());
        assertEquals("Models should be the same", expected.getModel(), actual.getModel());
        assertEquals("Brands should be the same", expected.getBrand(), actual.getBrand());
    }

}
